package com.wxn.learncompose

import android.app.Application
import android.content.Context

class MyApp:Application() {

    companion object {
        private lateinit var instance : MyApp;

        fun context() : Context {
            return instance.applicationContext
        }
    }

    override fun onCreate() {
        super.onCreate()
        MyApp.instance = this
    }
}